import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    haslogin:false,
    token:null
  },
  mutations: {
    login(state, provider){
      state.haslogin = true
      state.token = provider.token
    },
    logout(state){
      state.haslogin = false,
      state.token = null
    }
  },
  actions: {
  },
  modules: {
  }
})
